<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <title>
        <%=article.title%>
    </title>
    <meta name="description" content="">

    <meta name="HandheldFriendly" content="True">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <link rel="shortcut icon" href="/favicon.ico">

    <link rel="stylesheet" type="text/css" href="/css/screen.css" />

    <script src="/js/jquery.js"></script>

    <meta name="referrer" content="origin">


    <meta property="og:type" content="article">
    <meta property="og:title" content="<%=article.title%>">
    <meta property="og:description" content="<%=article.html%>">
    <meta property="og:url" content="http://blog.xiaopinzy.com/<%=article._id%>">
    <meta property="article:published_time" content="<%=article.created%>">
    <meta property="article:modified_time" content="<%=article.lastmod%>">
    <meta property="article:tag" content="<%=article.title%>">

    <meta name="twitter:card" content="summary">
    <meta name="twitter:title" content="<%=article.title%>">
    <meta name="twitter:description" content="<%=article.html%>">
    <meta name="twitter:url" content="http://blog.xiaopinzy.com/<%=article._id%>">




    <script src="http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=407023"></script>
    <style id="fit-vids-style">
        .fluid-width-video-wrapper {
            width: 100%;
            position: relative;
            padding: 0;
        }
        
        .fluid-width-video-wrapper iframe,
        .fluid-width-video-wrapper object,
        .fluid-width-video-wrapper embed {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }
    </style>
    <link rel="stylesheet" href="http://bdimg.share.baidu.com/static/api/css/share_style1_24.css">
</head>

<body class="post-template nav-closed">
    <div class="site-wrapper">
        <style type="text/css">
            @media(max-width: 768px) {
                .share2 {
                    display: none;
                }
            }
        </style>

        <header class="main-header post-head no-cover">
            <nav class="main-nav  clearfix">
                <a class="blog-logo" href="/"><img src="<%=global.logo%>" alt="<%=global.name%>" /></a>
            </nav>
        </header>

        <main class="content" role="main">
            <article class="post tag-yan-hou-yi-wu-gan">
                <% var created = new Date(article.created); %>
                    <% createdstr = created.Format("yyyy年MM月dd日"); %>
                        <% createdstr = (createdstr == '1970年01月01日' ? '0000年00月00日' : createdstr); %>

                            <header class="post-header">
                                <h1 class="post-title"><%=article.title%></h1>
                                <section class="post-meta">
                                    <time class="post-date"><%=createdstr%></time> 标签：
                                    <%for(var i = 0;i<article.tags.length;i++){%>
                                        <a href="/tags/<%=article.tags[i]%>">
                                            <%=article.tags[i]%>
                                        </a>
                                        <%}%>
                                </section>
                            </header>

                            <section class="post-content">
                                <div class="art">
                                    <%-article.html%>
                                </div>
                            </section>

                            <footer class="post-footer">
                                <section class="author">
                                    <h4><a href="/author/<%=article.author._id%>"><%=article.author.nickname%></a></h4>
                                    <p>继续阅读此作者的<a href="/author/<%=article.author._id%>">更多文章</a>。</p>
                                    <div class="author-meta"></div>
                                </section>

                                <section class="share share2">
                                    <h4>分享此博文</h4>
                                    <div class="bdsharebuttonbox bdshare-button-style1-24" data-bd-bind="1465288069218">
                                        <a href="#" class="bds_more" data-cmd="more"></a>
                                        <a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a>
                                        <a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a>
                                        <a href="#" class="bds_douban" data-cmd="douban" title="分享到豆瓣网"></a>
                                        <a href="#" class="bds_renren" data-cmd="renren" title="分享到人人网"></a>
                                    </div>
                                    <script>
                                        window._bd_share_config = {
                                            "common": {
                                                "bdSnsKey": {},
                                                "bdText": "",
                                                "bdMini": "2",
                                                "bdMiniList": false,
                                                "bdPic": "",
                                                "bdStyle": "1",
                                                "bdSize": "24"
                                            },
                                            "share": {}
                                        };
                                        with(document) 0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = 'http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=' + ~(-new Date() / 36e5)];
                                    </script>
                                </section>
                            </footer>
            </article>
        </main>
        <aside id="page" class="read-next">

        </aside>
        <footer class="site-footer clearfix">
            <section class="copyright">
                <a href="/">
                    <%=global.name%>
                </a> © 2016</section>
        </footer>
    </div>

    <script src="/js/jquery.js"></script>
    <script src="/js/jquery.fitvids.min.js"></script>



    <div id="qq-sendUrl-btn"></div>
    <div id="qb-sougou-search" style="display: none; opacity: 0;">
        <p>搜索</p>
        <p class="last-btn">复制</p><iframe src=""></iframe></div>
</body>
<script>
    $(function() {
        function artappend(_id, title, content, prev) {
            var text = '<a class="read-next-story ' + prev + ' no-cover" href="/article/' + _id + '"><section class="post"><h2>' + title + '</h2><p>' + content + '</p></section></a>';
            if (prev != 'prev') {
                $('#page').prepend(text);
            } else {
                $('#page').append(text);
            }

        }

        $.ajax({
            type: "POST",
            cache: false,
            url: "/api/article/listByDate",
            data: {
                afterTime: new Date("<%=article.created%>"),
                id: "<%=article._id%>"
            },
            success: function(msg) {
                if (msg.status == 0 && msg.msg != []) {
                    console.log(msg.msg);
                    artappend(msg.msg._id, msg.msg.title, msg.msg.html.replace(/<[^>]+>/g, "").substr(0, 140), '');
                }
            }
        });

        $.ajax({
            type: "POST",
            cache: false,
            url: "/api/article/listByDate",
            data: {
                beforeTime: new Date("<%=article.created%>"),
                id: "<%=article._id%>"
            },
            success: function(msg) {
                if (msg.status == 0 && msg.msg != []) {
                    artappend(msg.msg._id, msg.msg.title, msg.msg.html.replace(/<[^>]+>/g, "").substr(0, 140), 'prev');
                }
            }
        });

    });
</script>

</html>